package com.example.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {

    @Override
	public void onReceive(Context context, Intent intent) {
		if ("myaction".equals(intent.getAction())) {
			Toast.makeText(context, "Received", Toast.LENGTH_SHORT).show();
		}else {
//            Toast.makeText(context, "Rock Kaijo", Toast.LENGTH_SHORT).show();
		}
	}
}
